package vip.source.pattern.part02.normal;

import org.junit.jupiter.api.Test;
import vip.source.pattern.part02.normal.service.CacheService;
import vip.source.pattern.part02.normal.service.impl.CacheServiceImpl;

/** @Description: 抽象工厂测试 @Author: zy */
public class UnitTest {
    @Test
    public void test_CacheService() {

        CacheService cacheService = new CacheServiceImpl();

        cacheService.set("user_name_01", "开源字节", 1);
        String val01 = cacheService.get("user_name_01", 1);
        System.out.println("测试结果：" + val01);
    }
}
